package com.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author chl
 * @since 2021-12-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "ts.ods_ycl_data")
public class OdsYclData extends Model<OdsYclData> {

    private static final long serialVersionUID = 1L;

    /**
     * 老师名字
     */
    @TableId(value = "measurepoint_id", type = IdType.ASSIGN_UUID)
    private String measurepointId;

    /**
     * 老师名字
     */
    private String measureTag;

    /**
     * 老师编号
     */
    private String value1;

    /**
     * 老师地址
     */
    private String 	dataType;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    @Override
    protected Serializable pkVal() {
        return this.measurepointId;
    }

}
